﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;

namespace HotelManageSystem.Domain.Entities
{
    /// <summary>
    /// Class Name:     HotelingHistory
    /// Author:         Wenshu Zhang
    /// Creation Date:  2011-12-29
    /// Description:    
    /// QA:             
    /// -----------------------------------------
    /// </summary>
    public  class HotelingHistory
    {
        public HotelingHistory()
        {
            ClientCollection = new Collection<Client>();
        }
        [Key]
        public string ID { get; set; }

        [Required]
        public virtual Room Room { get; set; }

        //[Required]
        public virtual ICollection<Client> ClientCollection { get; set; }

        [Required]
        public int PresonNum { get; set; }

        [Required]
        public DateTime EntetTime { get; set; }

        [Required]
        public DateTime OutTime { get; set; }

    }
}
